<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url($cate[$cate_id])}">资源库</a></li>
			<li class="active"><a href="">添加资源</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('add')}">
			<div class="form-group">
				<label for="input-company" class="col-sm-2 control-label"><span class="form-required">*</span>企业名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-company" required name="company">
				</div>
			</div>
			<div class="form-group">
				<label for="input-corporation" class="col-sm-2 control-label"><span class="form-required">*</span>法定代表人</label>
				<div class="col-md-6 col-sm-10">
					<input type="tel" class="form-control" id="input-corporation" required name="corporation">
				</div>
			</div>
			<div class="form-group">
				<label for="input-regtime" class="col-sm-2 control-label">成立时间</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" id="input-regtime" data-max-date="{:date('Y-m-d H:i')}" value="{:date('Y-m-d H:i')}" required name="regtime">
				</div>
			</div>
			<div class="form-group">
				<label for="input-registered_capital" class="col-sm-2 control-label"><span class="form-required">*</span>注册资金</label>
				<div class="col-md-6 col-sm-10 input-group" style="width:200px;padding: 0 15px;">
					<input type="number" class="form-control" id="input-registered_capital" required name="registered_capital">
					<span class="input-group-addon">万元</span>
				</div>
			</div>
			<div class="form-group">
				<label for="input-currency" class="col-sm-2 control-label"><span class="form-required">*</span>货币种类</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$defCurrency.name}"
						   placeholder="请选择币种" onclick="doSelectLayer(this);"
						   data-url="{:url('resource/currency/select')}" data-id="input-currency" name="layer_temp[1]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$defCurrency.id}" name="currency"
						   id="input-currency"/>
				</div>
			</div>
			<div class="form-group">
				<label for="select-cate_id" class="col-sm-2 control-label"><span class="form-required">*</span>分类</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" id="select-cate_id" name="cate_id">
						<volist name="cates" id="vo">
							<option value="{$vo.id}"  <eq name="cate_id" value="$vo.id">selected</eq> >{$vo.name}</option>
						</volist>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-address" class="col-sm-2 control-label"><span class="form-required">*</span>地址</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-address" required name="address">
				</div>
			</div>
			<div class="form-group">
				<label for="input-email" class="col-sm-2 control-label"><span class="form-required">*</span>邮箱</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-email" required name="email">
				</div>
			</div>
			<div class="form-group">
				<label for="input-phone" class="col-sm-2 control-label"><span class="form-required">*</span>联系电话</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-phone" required name="phone">
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-scope" class="col-sm-2 control-label">经营范围</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="scope" class="form-control" id="textarea-scope" rows="3"></textarea>
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="remark" class="form-control" id="textarea-remark" rows="3"></textarea>
				</div>
			</div>
			<div class="form-group">
				<label for="input-price" class="col-sm-2 control-label"><span class="form-required">*</span>价格</label>
				<div class="col-md-6 col-sm-10" style="width:400px;padding: 0 15px;">
					<div class="input-group">
						<span class="input-group-addon">¥</span>
						<input type="number" class="form-control" id="input-price" name="price" required>
						<span class="input-group-addon">万元</span>
					</div>
					<p class="help-block">（两位小数）</p>
				</div>
			</div>
			<div class="form-group">
				<label for="input-jyqk" class="col-sm-2 control-label">经营情况</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-jyqk" name="jyqk">
				</div>
			</div>
			<div class="form-group">
				<label for="input-lxr" class="col-sm-2 control-label">联系人</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-lxr" name="lxr">
				</div>
			</div>
			<div class="form-group">
				<label for="input-lxrsf" class="col-sm-2 control-label">联系人身份</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-lxrsf" name="lxrsf">
				</div>
			</div>
			<div class="form-group">
				<label for="input-zryy" class="col-sm-2 control-label">转让原因</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-zryy" name="zryy">
				</div>
			</div>
			<div class="form-group">
				<label for="select-attorn" class="col-sm-2 control-label"><span class="form-required">*</span>转让类型</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="attorn" id="select-attorn" required>
						<!--<option disabled selected>未选择</option>-->
						<volist name="lists" id="vo">
							<option value="{$vo.id}">{$vo.name}</option>
						</volist>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-jyzk" class="col-sm-2 control-label">经营状况</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-jyzk" name="jyzk">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>